home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0275.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  282 b   |  14 lines

  1.  
  2. Star fields are EASY.
  3.  
  4. Set up an array STAR(number_of_stars,2)
  5.  
  6. STAR(x,0)=X location on screen
  7. STAR(x,1)=Y location on screen
  8. STAR(x,2)=speed of star
  9.  
  10. start by making random values in STAR(x,0) and STAR(x,1), and plot the 
  11. dots. Just add STAR(x,2) to either x or y and redisplay
  12.  
  13.  
  14.